#
# Be sure to run `pod lib lint DiGeamKit.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'DiGeamKit'
  s.version          = '1.0.4'  #對應提交到碼雲的tag標籤
  s.summary          = 'DiGeamKit工具'
  s.homepage         = 'https://gitee.com/jinyi.com/di-geam-kit'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'DF' => '993942283@qq.com' }
  s.source           = { :git => 'https://gitee.com/jinyi.com/di-geam-kit.git', :tag => s.version.to_s }# 倉庫URL地址,tag跟上面version一致
  s.ios.deployment_target = '13.0'#最低支持iOS13.0
  s.requires_arc     = true #支持arc
  
  #framework對應的資源地址,路徑必須完全正確,不然驗證不通過
  s.preserve_paths   = 'DiGeamKit.framework'
 # s.source_files     = 'DiGeamKit.framework/Headers/*.h'
 # s.public_header_files = 'DiGeamKit.framework/Headers/*.h'
  s.vendored_frameworks = 'DiGeamKit.framework'
  
  s.default_subspec = 'Default'
  s.subspec 'Default' do |de|
    de.source_files = "DiGeamKit.framework/**/*.{h}"
    de.resources = "DiGeamKit.framework/*.{bundle}"
  end
  

  # 在xcconfig中，路径应该以'${PODS_ROOT}/'开头，并且确保路径闭合正确，没有多余的斜杠
  s.xcconfig         = { 'HEADER_SEARCH_PATHS' => '${PODS_ROOT}/DiGeamKit/DiGeamKit.framework/Headers/' }
  
  s.dependency 'AFNetworking', '~> 4.0.1' # 指定依赖库的版本
  s.dependency 'MJExtension', '~> 3.4.1' # 指定依赖库的版本
  s.dependency 'MBProgressHUD', '~> 1.2.0' # 指定依赖库的版本
  s.dependency 'IQKeyboardManager', '~> 6.5.19' # 指定依赖库的版本
  s.dependency 'SDWebImage','~> 5.19.1' # 指定依赖库的版本
  s.dependency 'TZImagePickerController/Basic','~> 3.8.5' # 指定依赖库的版本

  #必须加以下的东西,不然Cocoapod验证不通过
    s.pod_target_xcconfig = {
    'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'
    }
    s.user_target_xcconfig = {
    'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'
    }
  
end
